package com.hea7en.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hea7en.model.article.dto.ArticleHomeDto;
import com.hea7en.model.article.pojo.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hea7en
 * @Date: 2024/8/18 10:03 PM
 * @Description: 文章模块Mapper
 */
@Mapper
public interface ArticleMapper extends BaseMapper<ApArticle> {

    /**
     * 加载文章列表
     * @param type
     * @param articleHomeDto
     * @return
     */
    List<ApArticle> loadArticleList(Short type, @Param("dto") ArticleHomeDto articleHomeDto);
}
